﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class AJAXDemos_UpdateProgressDemo : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    public static void AddOrder()
    {
        System.Threading.Thread.Sleep(5000);
    }

    protected void SubmitButton_Click(object sender, EventArgs e)
    {
        AddOrder();
        this.UpdateLabel.Text = "After the update.";
    }
    protected void ResetButton_Click(object sender, EventArgs e)
    {
        this.UpdateLabel.Text = "Before the submit...";
    }
}
